import os
from celery import Celery
# 调用celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE', "auction.settings")

app = Celery('auction')

app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()
